<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
<meta content="no-cache" http-equiv="pragma">
<meta content="0" http-equiv="expires">
<meta content="telephone=no, address=no" name="format-detection">
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
<link href="__CONTENT__/css/main.css" rel="stylesheet">
<style>
#share-bg{display:none;background-repeat:no-repeat;background-color:#191919;z-index:20;position:absolute;}
</style>
</head>
<body class="gbuy_grid" oncontextmenu="self.event.returnValue=false" onselectstart="return false">
<div id="share-bg">
	<img src="__CONTENT__/images/weixin_share_bg.jpg" width="100%" height="100%" />
</div>
<div>
  <div id="container" class="container animate">
    <div class="body ofh">
      <section id="list_uls" class="list_section box_swipe" style="visibility: visible;">
        <ul class="gbuy_list_grid">
          <!--No.1    -->
          <li style="width: 100%; display: table-cell; vertical-align: top;">
            <div class="card_cm">
              <span class="card_mod"><img src="__CONTENT__/images/card.png" style="max-width:100%">
			  <div style="color:#fff;position:absolute;margin-left:1.6em;margin-top:-1.8em;font-size:1.5em;font-weight:bold;">{$_SESSION['user']['card']}</div>
			  </span>
              <ul>
              	<li><em>名</em>昵称：{$_SESSION['user']['username']}<i></i></li>
                 <li><em>¥</em>余额：¥{$user['balance']|'0'}<i></i></li>
                 <li><em>分</em>消费积分：{$user['bonus']|'0'}<i></i></li>
                 <li><em>微</em>微信积分：{$_SESSION['user']['bonus']}<i></i></li>                 
				 <li onclick="location.href='{:U('navigation')}'"><em>图</em>门店导航 - 地址：万达广场B座10层<i></i></a></li>
                 <li onclick="location.href='tel:07176851336'"><em>话</em>一键拨打 - 电话：0717-6851336<i></i></a></li>
				 <li onclick="f.share()"><em>享</em>一键分享 - 分享到朋友圈可获积分<i></i></li>
              </ul>
            </div>
            </li>
        </ul>
      </section>
    </div>
  </div>
</div>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="__CONTENT__/js/jquery.js"></script>
<script>
wx.config({
    debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
    appId: "{:C('WEIXIN_APP_ID')}", // 必填，公众号的唯一标识
    timestamp:"{$_SERVER['REQUEST_TIME']}", // 必填，生成签名的时间戳
    nonceStr: "{$noncestr}", // 必填，生成签名的随机串
    signature: "{$signature}",// 必填，签名，见附录1
    jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage','onMenuShareQQ','onMenuShareWeibo','startRecord'] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
});
wx.ready(function(){
	wx.onMenuShareTimeline({
		title: '丝薇发型设计沙龙推荐好友得积分',
		link: "http://{$_SERVER['HTTP_HOST']}{:U('Index/login?uid='.$_SESSION['user']['id'])}",
		imgUrl: "http://{$_SERVER['HTTP_HOST']}__CONTENT__/images/txm.jpg"
	});
});
var f={};
$(function(){
	$("#share-bg").css({"height":$("#container").height()+"px"});
	f.share=function(){
		$("#share-bg").show();
	}
	$("#share-bg").click(function(){
		$(this).hide();
	});
});
</script>
</body>
</html>